package com.gqz.aircraftwar

import android.app.Application
import android.graphics.Paint
import android.graphics.RectF
import com.jeremyliao.liveeventbus.LiveEventBus
import kotlinx.coroutines.newSingleThreadContext

/**
 * Descraption
 *
 * @author gqz
 * @data 2020/3/20
 */
class App : Application() {

    companion object {
        lateinit var instance: Application
            private set

        var isRunning = false
        var surfaceW: Int = 0
        var surfaceH: Int = 0
        var bounds: RectF? = null
        var paint = Paint()

    }

    object EventKey {
        val GameStatus_WaveOver = "wave_over"
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
        LiveEventBus.config().enableLogger(false)
        paint.isAntiAlias = true
        paint.isDither = true
    }
}
